package com.tanhua.common.utils;

import com.tanhua.common.pojo.User;

public class UserThreadLocal {
    private static final ThreadLocal<User> threadlocal=new ThreadLocal<>();
    private UserThreadLocal(){

    }
    public  static void setuser(User user){
        threadlocal.set(user);
    }
     public  static User getuser(){
       return threadlocal.get();
    }
    public static void remove(){
        threadlocal.remove();
    }
}
